<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>相关企业信息管理</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/bootstrap-theme.min.css">
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/login.css">
    <link rel="stylesheet" href="css/mycss.css">

</head>
<body>
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default navbar-static-top" role="navigation">
                <div class="navbar-header">
                    <ul class="nav nav-tabs ">
                       <li><img src="image/~F$UI6VM26N2K%7B)M(%60%5BX%5DFI.jpg" style="height: 45px;width: auto; margin-top: 5px" ></li>
                        <li><p style="font-family: 华文彩云;font-size: 35px;margin-top: 3px">毕业生就业管理</p></li>
                    </ul>
                </div>

                <ul class="nav nav-tabs ">

                    <li class="dropdown pull-right">
                        <a href="#" data-toggle="dropdown" class="dropdown-toggle">个人中心<strong class="caret"></strong></a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="#">修改信息</a>
                            </li>
                            <li>
                                <a href="#">个人关注</a>
                            </li>
                            <li>
                                <a href="#">更多设置</a>
                            </li>

                        </ul>
                    </li>
                    <form class="navbar-form navbar-left pull-right" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search">
                        </div>
                        <button type="submit" class="btn btn-default">提交</button>
                    </form>
                </ul>
            </nav>


            <div class="row clearfix">
                <div class="col-md-3 column">

                        <ul class="nav nav-pills nav-stacked">
                            <li >
                                <a href="#">首页</a>
                            </li>
                            <li >
                                <a href="fun1-employmentLawsAndRegulations.html">发布就业法律法规</a>
                            </li>

                            <li class="active">
                                <a href="">发布相关网站信息</a>
                            </li>
                            <li>
                                <a href="fun3-jobFair.html">发布招聘会信息</a>
                            </li>
                            <li >
                                <a href="fun4-announcement.html">发布公告</a>
                            </li>
                            <li >
                                <a href="fun5-recruitmentInfo.html">发布招聘信息</a>
                            </li>
                            <li >
                                <a href="fun6-employmentConsult.html">发布就业培训</a>
                            </li>
                            <li >
                                <a href="">发布就业指导</a>
                            </li>
                            <li >
                                <a href="fun8-userInfo.html">毕业生档案删除</a>
                            </li>
                            <li>
                                <a href="fun9-enterpriseinformation.html">企业档案删除</a>
                            </li>
                        </ul>


                </div>
                <div class="col-lg-9 myDiv columm">
                    <ul class="list-group" id="ul">
             
                    </ul>

                    <nav style="text-align: center">
                        <ul class="pagination" id="page">
                   

                          
                        </ul>
                    </nav>	
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer ">
    <div class="container">
        <div class="row footer-top">
            <div class="col-sm-6 col-lg-6">
                <h4></h4>
                <p>欢迎你加入，这里有你想要的.</p>
            </div>
            <div class="col-sm-6  col-lg-5 col-lg-offset-1">
                <div class="row about">
                    <div class="col-xs-3">
                        <h4>关于</h4>
                        <ul class="list-unstyled">
                            <li>
                                <a href="">关于我们</a>
                            </li>
                        </ul>
                    </div>
                    <div class="col-xs-3">
                        <h4>联系方式</h4>
                        <ul class="list-unstyled">
                            <li>
                                <a target="_blank" title="云梦网官方微博" href="">新浪微博</a>
                            </li>
                            <li>
                                <a href="">电子邮件</a>
                            </li>
                        </ul>
                    </div>
                </div>

            </div>
        </div>
        <hr>
        <div class="row footer-bottom">
            <ul class="list-inline text-center">
                <li>Copyright &copy;2017. n 第二小组 Software All Rights Reserved.</li>
            </ul>
        </div>
    </div>
</div>

		<script type="text/javascript">
		
			function load(cur){
				$.get('/GMS/RelevantEnterprisesWebsiteIndex',	{'cur':cur}, function(page){
					
					var ul = $('#ul').empty();
					var p = $('#page').empty();
					if( page && page.list ){
						
						for(var i = 0; i < page.list.length; i++){
							var a = page.list[i];
							var li = '<li class="list-group-item">\
	                           	 <div class="mylist" >\
                         			   <a>'+a.websitename + '</a>\
                         			   <a class="badge" href="/GMS/RelevantEnterprisesWebsiteDelete?websiteid=' + a.websiteid + '"> 删除</a>\
                            		    <p >&nbsp&nbsp&nbsp</p>\
                       			       <a class="badge" href="/GMS/RelevantEnterprisesWebsiteEdit?websiteid='+a.websiteid +'">编辑</a>\
                                </div>\
                              </li>';
							ul.append( $(li)  );
						}
						
						
						for(var i = 1; i <= page.total; i++){
							var l =$('<li></li>');
							var a =$( '<a></a>' ).html(i);
							if( i == page.current ){
								a.attr('href', '-1').css('color','#ccc');
							} else {
								a.attr('href', i);
							}
							
							a.click(function( e ){
								e.preventDefault();
								
								var _a = $( this );
								var _cur = _a.attr('href');
								if( _cur >= 1 ){
									load(_cur);
								}
								
							});
							l.append( a );
							p.append( l );
						}
					}
					
					
					
				}, 'json');
			}
		
			load(1);
		</script>
</body>
</html>